/**
 * 
 */
package org.msfj.common.base;

import org.apache.ibatis.annotations.InsertProvider;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.ids.SelectByIdsMapper;

import java.util.List;

/**
 * @Description: 基础mapper接口
 * @User: program
 * @Date: 2017/4/24
 */
public interface BaseMapper<T> extends Mapper<T>, SelectByIdsMapper<T> {
    /**
     * 批量插入
     *
     * @param recordList
     * @return
     */
    @InsertProvider(type = BaseMapperProvider.class, method = "dynamicSQL")
    void insertList(List<T> recordList);
}
